package interface_test.animal;

/**
 * @author yuisama
 * @date 2022/04/28 21:34
 **/
public class Duck implements IRun,ISWim,IFly{
    @Override
    public void fly() {
        // 全局常量
        System.out.println(IFly.test);
//        IFly = "123";
        System.out.println("鸭子在飞~~~");
    }

    @Override
    public void run() {
        System.out.println("鸭子在跑~~~");
    }

    @Override
    public void swim() {
        System.out.println("鸭子在游泳~~~");
    }
}